package com.key.w8.common;

import io.netty.channel.ChannelHandlerContext;

/**
 * 附加功能
 * 如将ChannelHandlerContext注入进Connection，即可以直接通过chc将数据传入pipeline进而输出数据
 */
public interface ChannelHandlerContextAware {

    /**
     * the method will be called after
     * {@link io.netty.handler.codec.http2.Http2ConnectionHandler}
     * being add to {@link io.netty.channel.ChannelPipeline}
     * @param ctx ChannelHandlerContext
     */
    void setChannelHandlerContext(ChannelHandlerContext ctx);
}
